package com.flower.salary.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author baomidou
 * @since 2024-02-27
 */
@TableName("sys_salary")
public class SysSalary implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Integer id;

    /**
     * 员工id
     */
    private Integer userId;

    /**
     * 员工姓名
     */
    private String name;

    /**
     * 基础工资
     */
    private BigDecimal basicSalary;

    /**
     * 奖金
     */
    private BigDecimal bonus;

    /**
     * 扣税
     */
    private BigDecimal taxDeduction;

    /**
     * 实发工资
     */
    private BigDecimal netSalary;

    /**
     * 财务
     */
    private String userAdmin;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getBasicSalary() {
        return basicSalary;
    }

    public void setBasicSalary(BigDecimal basicSalary) {
        this.basicSalary = basicSalary;
    }

    public BigDecimal getBonus() {
        return bonus;
    }

    public void setBonus(BigDecimal bonus) {
        this.bonus = bonus;
    }

    public BigDecimal getTaxDeduction() {
        return taxDeduction;
    }

    public void setTaxDeduction(BigDecimal taxDeduction) {
        this.taxDeduction = taxDeduction;
    }

    public BigDecimal getNetSalary() {
        return netSalary;
    }

    public void setNetSalary(BigDecimal netSalary) {
        this.netSalary = netSalary;
    }

    public String getUserAdmin() {
        return userAdmin;
    }

    public void setUserAdmin(String userAdmin) {
        this.userAdmin = userAdmin;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "SysSalary{" +
            "id = " + id +
            ", userId = " + userId +
            ", name = " + name +
            ", basicSalary = " + basicSalary +
            ", bonus = " + bonus +
            ", taxDeduction = " + taxDeduction +
            ", netSalary = " + netSalary +
            ", userAdmin = " + userAdmin +
            ", createTime = " + createTime +
        "}";
    }
}
